// 库引入
import React, {Component} from 'react';
import {inject, observer} from 'mobx-react';
import classNames from 'classnames';
import {Link} from 'react-router-dom';

// 样式引入
import styles from './style.module.less';

@observer
class Logo extends Component {
  render() {
    return (
      <Link to="/" className={classNames(styles.logo, this.props.className)} style={this.props.style}>
        logo
      </Link>
    );
  }
}

Logo.defaultProps = {
  className: 'Logo'
};

const InjectLogo = inject(({someStore={}}) => ({someProps: someStore.attribute}))(Logo);

export {
  Logo,
  InjectLogo
};